<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
  <div id="app">
    <!-- <ul>
      <li v-for="(n,k,index) in user" :key="k">
        {{index}}-{{k}}-{{n}}
      </li>
    </ul> -->

    <!-- <ul>
      <li v-for="n in num">
        {{n}}
      </li>
    </ul> -->

    <div>
      <span v-for="n in 10">{{ n }} </span>
    </div>

  </div>

  <script>
    var vm = new Vue({
      el: "#app",
      data: {
        user: {
          name: "xiaoming",
          age: 20,
          address: "太原"
        },
        num: [1, 2, 3, 4, 5]
      },
      methods: {

      },
      mounted() {
        setTimeout(() => {
          this.num.splice(0, 1, 100)
        }, 2000)
      }
    })
  </script>
</body>

</html>